package com.whmskj.xjlhsc.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * 维保专件使用记录
 *
 * @author lk
 * @since 2025-06-23 17:03:56
 */
@Data
@TableName("ys_special_use_record")
public class SpecialUseRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 维保任务ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField(value = "wb_record_id")
    private Long wbRecordId;

    /**
     * 添加时间
     */
    @TableField(value = "addTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // JSON序列化格式
    private LocalDateTime addTime;

    /**
     * 专件ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField(value = "special_id")
    private Long specialId;

    /**
     *
     */
    @TableField(value = "special_type")
    private String specialType;

    /**
     * 专件名称
     */
    @TableField(value = "special_name")
    private String specialName;

    /**
     * 使用数量
     */
    @TableField(value = "use_count")
    private Integer useCount;

    /**
     * 使用人
     */
    @TableField(value = "use_use")
    private String useUse;

}